<!-- Dom模板 -->
<template>
    
  <div class="look">
        <!-- Dom内容 -->
          <el-form ref="data" :model="data" label-width="80px">
  <el-form-item label="编号">
    <el-input v-model="data.id"></el-input>
  </el-form-item>
  <el-form-item label="名称">
    <el-input v-model="data.title"></el-input>
  </el-form-item>
  <el-form-item label="使用范围">
    <el-input v-model="data.useRange"></el-input>
  </el-form-item>
  <el-form-item label="使用门槛">
      <el-input v-model="data.useDoor"></el-input>
  </el-form-item>
  <el-form-item label="面值">
    <el-input v-model="data.faceValue"></el-input>
  </el-form-item>
  <el-form-item label="有效期">
    <el-input v-model="data.expiryDate"></el-input>
  </el-form-item>
  <el-form-item label="状态">
    <input type="text" :value="data.pouponType == 0 ?'待支付':(data.pouponType == 1 ? '已支付':(data.pouponType == 2 ?'已关闭':(data.pouponType == 3 ? '已退款':'其他'))) ">
  </el-form-item>
  <el-form-item>
    <el-button type="primary" @click="closePop">确定</el-button>
    <el-button @click="closePop">取消</el-button>
  </el-form-item>
</el-form>
  </div>
</template>

<script>
// import a from './a'; // 引入组件
export default {
  name: "",
  data() {
    return {
      msg: "测试",
      data:''
    };
  }, 
    props:['lookData',"closePop"],
  // 生命周期 - 创建完成（访问当前this实例）
  created() {
      this.data = this.lookData
  }, 
  // 生命周期 - 挂载完成（访问DOM元素）
  mounted() {
  },
   // Vue方法定义
  methods: {},
};
</script>

<style scoped>
/* @import url(''); 引入css类 */
.look {
  z-index: 99;
  width: 450px;
  height: 500px;
  text-align: left;
  box-sizing: border-box;
  background: #eaeaea;
  border-radius: 10px;
  padding: 10px;
  position: fixed;
  left: 50%;
  margin-left: -200px;
  top: 50%;
  margin-top: -250px;
  border: 1px solid #ccc;
}
input{
    background-color: #FFF;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #DCDFE6;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    outline: 0;
    padding: 0 15px;
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    width: 100%;
}
</style>